package cmd

import (
	"app/internal/consts"
	"fmt"
	"github.com/spf13/cobra"
)

func init() {
	rootCmd.AddCommand(versionCmd) //查看版本
}

var versionCmd = &cobra.Command{
	Use:   "version",
	Short: "show app version",
	Long:  `app version`,
	Run: func(cmd *cobra.Command, args []string) {
		fmt.Println(consts.VERSION)
	},
}
